package com.ty.day6;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/29 11:38
 */
public class StraemReaderAndWriter {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\文件夹\\java\\1\\2.md");
        InputStreamReader isr = new InputStreamReader(fis);
        char[] bytes = new char[1024];
        int read = isr.read(bytes);
        System.out.println(bytes);
        isr.close();
        fis.close();

    }
}
